
/**
 * @cat Yahoo
 * @name Renaissance.YahooRelatedSuggestion
 * @return {Object} object
 */
function Renaissance.YahooRelatedSuggestion() {
	this.requester = new Renaissance.JsonRequest('http://search.yahooapis.com/WebSearchService/V1/relatedSuggestion?appid=YahooDemo&output=json&callback={callback}');
}
/**
 * @cat Yahoo
 * @name Renaissance.YahooRelatedSuggestion.prototype.search
 * @param {Function} callback callback function to handle the output
 */
Renaissance.YahooRelatedSuggestion.prototype.search = function (callback, query, parameters) {
	var parameters = parameters ? parameters : {};
	parameters['query'] = query;

	return this.requester.request(function (data) {
		callback.call(callback, data.ResultSet ? data.ResultSet.Result : []);
	}, parameters);
};
